package com.link.base.base.sms.dao.mybatis.mapper;


import com.link.base.sms.model.SendResult;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;
/**
 * @Author: liulu
 * @Date:15:37 2018/11/5
 */

public interface SendResultMapper extends BasicMapper<SendResult> {
    /**
     * 根据关联的SMS_Id查询记录,不分页
     *
     * @param smsId
     * @return List SendResult
     * @throws Exception
     */
    public List<SendResult> queryBysmsId(Long smsId) throws Exception;

    /**
     * 根据关联的SMS_Id分组，看有多少成功记录
     *
     * @param sendResult
     * @return int
     * @throws Exception
     */
    public int queryCountBySend(SendResult sendResult) throws Exception;

    /**
     * 根据关联的客户分组，看有多少成功记录
     *
     * @param sendResult
     * @return int
     * @throws Exception
     */
    public int queryCountByUse(SendResult sendResult) throws Exception;

    /**
     * 根据sid修改数据
     * @Author:LiuLu
     * @Date:16:46 2018/5/18
     * @param sendResult
     * @throws Exception
     */
    public void updateSmsId(SendResult sendResult) throws Exception;

    /**
     * 新建短信回复记录 smsId对应SendSms row_id
     *
     * @author lujiang
     * @date 2019-04-08
     * @param sendResult
     */
    void sendResultInsertByInterface(SendResult sendResult) throws Exception;

    /**
     * 查询短信记录
     *
     * @author lujiang
     * @date 2019-04-04
     * @param sendResult 短信记录对象
     * @return
     */
    List<SendResult> queryByMobileExamplePage(SendResult sendResult) throws Exception;
}
